#include <QMessageBox>
#include <QWebView>
#include "DictionaryView.h"

DictionaryView::DictionaryView(QWidget* parent) :QWidget(parent) {

}

void DictionaryView::FindWord(QString w) {
	QObject* c = this->children().at(1);
	//QMessageBox::information(this, "text", c->objectName());
	QWebView* wview = static_cast<QWebView*> (c);
	wview->setUrl(QUrl(tr("http://www.bluedic.com/")+w));
}
